<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<meta name="renderer" content="webkit|ie-comp|ie-stand">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width, initial-scale=1.0">

<title>二手物品列表-柚子校园</title>
<link href="Public/plugins/hplus/css/bootstrap.min.css?v=3.3.6"
	rel="stylesheet">
<link href="Public/plugins/hplus/css/font-awesome.min.css?v=4.4.0"
	rel="stylesheet">
<link href="Public/plugins/hplus/css/animate.css" rel="stylesheet">
<link href="Public/plugins/hplus/css/style.css?v=4.1.0" rel="stylesheet">
<link href="Public/public/pace-theme-flash.css" rel="stylesheet">
<link href="Public/home/css/public/common.css" rel="stylesheet">
<link rel="stylesheet" href="Public/Fonts/items/iconfont.css"
	type="text/css" />
<link rel="stylesheet" type="text/css"
	href="Public/plugins/swiper/swiper-3.4.2.min.css">
<link rel="stylesheet" type="text/css"
	href="Public/home/css/buy/index.css">
<link rel="stylesheet" type="text/css" href="css/jquery.slider.css" />
<link type="text/css" href="Public/Fonts/iconfont.css" rel="stylesheet" />
<script type="text/javascript" src="js/jquery-1.7.1.min.js"></script>
<script type="text/javascript" src="js/jquery.slider.min.js"></script>
<style type="text/css">
@font-face {
	font-family: "iconfont";
	src: url('iconfont.eot'); /* IE9*/
	src: url('iconfont.eot#iefix') format('embedded-opentype'),
		/* IE6-IE8 */
          url('iconfont.woff') format('woff'), /* chrome, firefox */
          url('iconfont.ttf') format('truetype'),
		/* chrome, firefox, opera, Safari, Android, iOS 4.2+*/
          url('iconfont.svg#iconfont') format('svg'); /* iOS 4.1- */
}

.iconfont {
	font-family: "iconfont" !important;
	font-size: 16px;
	font-style: normal;
	-webkit-font-smoothing: antialiased;
	-webkit-text-stroke-width: 0.2px;
	-moz-osx-font-smoothing: grayscale;
}
</style>
</head>

<body>
	<s:include value="nav2.jsp"></s:include>

	<div class="item-box">
		<s:include value="menu2.jsp"></s:include>
	</div>
	<div class="sidebar">
		<div class="btn block">
			<div class="ershou">
				<a href="Fabu">发布二手</a>
			</div>
			<div class="qiugou">
				<a href="Qiugou">发布求购</a>
			</div>
		</div>
	</div>

	<div class="main" style="padding-bottom: 0px;">
		<div class="box" style="margin-top: 80px;">
			<script type="text/javascript">
				$(document).ready(
						function($) {
							$(".slider").slideshow(
									{
										width : 1020,
										height : 267,
										transition : [ 'bar', 'Rain', 'square',
												'squareRandom', 'explode' ]
									});
						});
			</script>
			<div style="width: 980px; margin: 0 auto;">
				<div class="slider">
					<div>
						<a href="#"><img class="images" src="images/datouwang1.jpg"
							alt=""></a>
					</div>
					<div>
						<a href="#"><img class="images" src="images/datouwang2.jpg"
							alt=""></a>
					</div>
					<div>
						<a href="#"><img class="images" src="images/datouwang3.jpg"
							alt=""></a>
					</div>
					<div>
						<a href="#"><img class="images" src="images/datouwang4.jpg"
							alt=""></a>
					</div>
					<div>
						<a href="#"><img class="images" src="images/datouwang5.jpg"
							alt=""></a>
					</div>
					<div>
						<a href="#"><img class="images" src="images/datouwang6.jpg"
							alt=""></a>
					</div>
					<div>
						<a href="#"><img class="images" src="images/datouwang7.jpg"
							alt=""></a>
					</div>
				</div>
			</div>
			</div>
			<div class="wrap clearfix">
				<div class="main clearfix">
				<s:iterator value="#session.p.purchase" var="x">
					<div class="list clearfix">

						<div class="itemlist clearfix">
							<div class="itembox clearfix">
								<div class="item_main">
									<div class="left">
										<div class="userhead">
											<img src="<s:property value="#x.users.images"/>" />
										</div>
										<div class="username">
											<a  href=""><s:property value="#x.users.name"/></a>
										</div>
									</div>
									<div class="right">
										<div class="title">
											<s:property value="#x.name" />
										</div>
										<div class="desc"><s:property value="#x.introduce"/></div>
										<div class="attr">
											期望价格：<span class="price"><s:property value="#x.price"/></span> 交易地点：<span
												class="position"><s:property value="#x.address"/></span> 发布时间：<span class="datetime"><s:property value="#x.date"/></span>
											学校：<span class="school"><s:property value="#x.school.name"/></span>
										</div>
										<div class="contact">
											<span class="phone">手机：<span class="telnum">
													<s:property value="#x.phone"/> </span>
											</span> <span class="qq">QQ：<span class="qqnum">
													<s:property value="#x.qq"/></span>
											</span> 
										</div>
									</div>
								</div>
								<div id="item1016" class="item_comments" style="display: none;">
									<div class="comment_wr"></div>
								</div>
							</div>
						</div>
					</div>
				</s:iterator>
				<div class="row text-center">
							<nav>
								<ul class="pagination">
									<s:if test="page>1">
										<li><a
											href="/SecondaryMarket/purchase?opt=<s:property value="#session.opt"/>&page=1">
												首页</a></li>
										<li ><a
										href="/SecondaryMarket/sale?opt=<s:property value="#session.opt"/>&page=<s:property value="#session.g.currentPage"/>">上一页</a></li>
									</s:if>
									<s:else>

									</s:else>
									<s:iterator begin="1" end="#session.p.totalPage" var="i">

										<s:if test="#session.p.currentPage+1==#i">
											<li class="active"><a
												href="/SecondaryMarket/purchase?opt=<s:property value="#session.opt"/>&page=<s:property value="#i"/>"><s:property
														value="#i" /></a></li>
										</s:if>
										<s:else>
											<li><a
												href="/SecondaryMarket/purchase?opt=<s:property value="#session.opt"/>&page=<s:property value="#i"/>">
													<s:property value="#i" />
											</a></li>
										</s:else>
									</s:iterator>
									<s:if test="page==#session.p.totalPage">
										
									</s:if>
									<s:else>
										<li><a
											href="/SecondaryMarket/purchase?opt=<s:property value="#session.opt"/>&page=<s:property value="#session.p.currentPage+2"/>">下一页</a></li>
									</s:else>
									<s:if test="page==#session.p.totalPage">

									</s:if>
									<s:else>
										<li><a
											href="/SecondaryMarket/purchase?opt=<s:property value="#session.opt"/>&page=<s:property value="#session.p.totalpage"/>">末页</a>
										</li>
									</s:else>
								</ul>
							</nav>
						</div>

					
				</div>
			</div>
		</div>
	
	<s:include value="footer.jsp"></s:include>
</body>
</html>